package com.smfx.yxt.reqVo;

import org.apache.commons.lang.StringUtils;

import com.smfx.yxt.utils.StringUtil;

public class KccsCourseQueryVO extends BasePageQueryVO {

	private Integer courseId;
	
	private Integer teacherId;
	
	private Integer studentId;
	
	private Integer parentId;
	
	private String classDate;
	
	private Integer isAgree;
	
	private Integer studyType;
	
	private String courseName;
	
	private String courseType;
	
	private String courseNo;
	
	private Integer grade;
	
	private String gradeType;
	
	private Integer clazz;
	
	private String studentName;

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getClassDate() {
		return classDate;
	}

	public void setClassDate(String classDate) {
		this.classDate = StringUtil.emptyToNull(classDate);
	}

	public Integer getIsAgree() {
		return isAgree;
	}

	public void setIsAgree(Integer isAgree) {
		this.isAgree = isAgree;
	}

	public Integer getStudyType() {
		return studyType;
	}

	public void setStudyType(Integer studyType) {
		this.studyType = studyType;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = StringUtil.emptyToNull(courseName);
	}

	public String getCourseType() {
		return courseType;
	}

	public void setCourseType(String courseType) {
		this.courseType = StringUtil.emptyToNull(courseType);
	}

	public String getCourseNo() {
		return courseNo;
	}

	public void setCourseNo(String courseNo) {
		this.courseNo = StringUtil.emptyToNull(courseNo);
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getClazz() {
		return clazz;
	}

	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = StringUtil.emptyToNull(studentName);
	}

	public String getGradeType() {
		return gradeType;
	}

	public void setGradeType(String gradeType) {
		if(StringUtils.isNotBlank(gradeType)) {
			String[] array = gradeType.split(",");
			this.grade = Integer.valueOf(array[0]);
		}
		this.gradeType = gradeType;
	}
	
}
